import request from "../utils/request";

/**
 *
 * @param {查询设备} params
 * @returns
 */
export function getEquipment(params) {
    return request({
        url: "/equipment/listEquipment",
        method: "post",
        params,
        headers: { showLoading: true },
    });
}

/**
 *
 * @param {添加设备} params
 * @returns
 */
export function addEquipment(params) {
    return request({
        url: "/equipment/addEquipment",
        method: "post",
        params,
    });
}

/**
 *
 * @param {编辑设备} params
 * @returns
 */
export function editEquipment(params) {
    return request({
        url: "/equipment/updateEquipment",
        method: "post",
        params,
    });
}

/**
 *
 * @param {删除设备} params
 * @returns
 */
export function delEquipment(params) {
    return request({
        url: "/equipment/delEquipment",
        method: "post",
        params,
    });
}